import request from '@/utils/request'

// 客户期限规则列表
export function customerTermRuleLists(params?: Record<string, any>) {
    return request.get({ url: '/customerTermRule/list', params })
}

// 客户期限规则详情
export function customerTermRuleDetail(params: Record<string, any>) {
    return request.get({ url: '/customerTermRule/detail', params })
}

// 客户期限规则新增
export function customerTermRuleAdd(params: Record<string, any>) {
    return request.post({ url: '/customerTermRule/add', params })
}

// 客户期限规则编辑
export function customerTermRuleEdit(params: Record<string, any>) {
    return request.post({ url: '/customerTermRule/edit', params })
}

// 客户期限规则删除
export function customerTermRuleDelete(params: Record<string, any>) {
    return request.post({ url: '/customerTermRule/del', params })
}
